<template>
  <container></container>
</template>
<script setup lang="ts">
import container from "./container/layout.vue";
import { useIndexStore } from "./store/index";
const indexStore = useIndexStore();
import { storeToRefs } from "pinia";
const { configData } = storeToRefs(indexStore);
import { ref, reactive, onMounted, onBeforeUnmount } from "vue";
const ipcRenderer = require("electron").ipcRenderer;
onMounted(() => {
  ipcRenderer.on("app-port", (event: any, data: any) => {
    indexStore.configData.port = data;
  });
});
onBeforeUnmount(() => {});
</script>
<style></style>
